/**
 * @Author: 耿立强
 * @Date: 2019/6/20
 * @Last Modified by:   耿立强
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 三包法规列表
export const assemblyListRecord = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/assemblyListRecord`, {params});

//新增总成与法规关系维
export const addThreeAssembly = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/addThreeAssembly`, params);
//更新状态
export const updateStatus = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/updateStatus`, params);

//获取法规列表
export const threeInfoList = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/threeInfoList`, {params});

//下载模板
export const downAssemblyTem = params => {
  return axios({
    url:`${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/downAssemblyTem`,
    method:'get',
    // params:params,
    responseType: 'blob'
  });
};


//导出列表
export const exportAssemblyListRecord = params =>
{
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpThreeInfo/exportAssemblyListRecord`,
    method: 'get',
    params:params,
    responseType: 'blob'
  });
};







